﻿namespace Bronze.XXT.PhoneServer
{
    using System;
    using Bronze.Network;

    public class PhoneEventArgs : EventArgs
    {
        private ClientConnection _conn;
        private object _data;
        private string _infomation;

        public string Infomation
        {
            get { return _infomation; }
            set { _infomation = value; }
        }


        public PhoneEventArgs(ClientConnection conn, object data, string infomation)
        {
            if (conn == null)
            {
                throw new ArgumentNullException();
            }
            this._data = data;
            this._conn = conn;
            this._infomation = infomation;
        }

        public PhoneEventArgs(ClientConnection conn)
            : this(conn, null,null)
        {
        }

   

        public ClientConnection Client
        {
            get
            {
                return this._conn;
            }
        }

        public object Data
        {
            get { return _data; }
            set { _data = value; }
        }

    }
}

